<%@page import="java.util.List"%>
<%@ page import="user.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <jsp:useBean id = "userList" scope = "session" class = "user.UserList"></jsp:useBean>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>注册名单</title>
</head>
<body>
<%
request.setCharacterEncoding("UTF-8");
User user = new User();
user.setUid(request.getParameter("uid"));
user.setPassword(request.getParameter("password"));
List<User> list = userList.getUsers();
list.add(user);
for (User u : list) {
    %>
    用户名：<%=u.getUid()%>&nbsp;&nbsp;|&nbsp;&nbsp;密码：<%=u.getPassword()%><br><%
}
%>
</body>
</html>